package com.novoda.runbuddy.model;

import com.novoda.runbuddy.util.DBHelperTools;

public class RunSegment extends JourneySegment {

	public int	checkpointNo;
	public int	lap;
	public long	time;

	public RunSegment(int id, CheckPoint checkPoint, int checkpointNo, int lap, long time, long createdAt) {
		super(id, checkPoint, createdAt);
		this.time = time;
		this.checkpointNo = checkpointNo;
		this.lap = lap;
	}

	public String getTime() {
		return DBHelperTools.isoFormat(this.time);
	}

}
